guilt by association

Translations
вина по ассоциации
Someone was judged guilty by association, even though they had no direct involvement.
Кого-то признали виновным по ассоциации, хотя он не имел прямого отношения.
Definitions
Guilt by association is a logical fallacy in which an individual is judged or deemed guilty based on their association with a person or group that is considered guilty or undesirable, rather than on their own actions or character.